package org.cagui.gui;

import java.awt.BorderLayout;

import javax.swing.JFrame;
import javax.swing.JPanel;
import javax.swing.JScrollPane;
import javax.swing.JTextArea;
import javax.swing.border.EmptyBorder;

public class CertificateData extends JFrame{
	
	JTextArea _resultArea = new JTextArea(12, 54);
	
	public CertificateData(String keyValue){
		//... Set textarea's initial text, scrolling, and border.
	    _resultArea.setText(keyValue);
	    JScrollPane scrollingArea = new JScrollPane(_resultArea);
	    
	    //... Get the content pane, set layout, add to center
	    JPanel content = new JPanel();
	    _resultArea.setBorder(new EmptyBorder(10, 10, 10, 10) );
	    content.setLayout(new BorderLayout());
	    content.add(scrollingArea, BorderLayout.CENTER);
	    
	    //... Set window characteristics.
	    this.setContentPane(content);
	    this.setTitle("Certificate Content");
	    this.pack();
        this.setVisible(true);		
	}
}
